package com.runcode.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.runcode.service.GoodService;

@RestController
public class GoodController {

	@Autowired
	private GoodService goodService;
	
	@RequestMapping(value = "good/id")
	public Object get(Integer id) {
		Object obj = goodService.goodById(id);
		return obj;
	}
	
}
